package JLB_Chapter_05;
// StringFormat2
public class code_05_31 {
    public static void main(String[] args) {
        String str1 = String.format("%5d",123);
        System.out.println(str1);
        String str2 = String.format("%-5d",123);
        System.out.println("|" + str2 + "|");
        String str3 = String.format("%#o",33);
        System.out.println(str3);
        String str4 = String.format("%#x",33);
        System.out.println(str4);
        String str5 = String.format("%+d",123);
        System.out.println(str5);
        String str6 = String.format("%+d",-123);
        System.out.println(str6);
        String str7 = String.format("% d",123);
        System.out.println("|" + str7 + "|");
        String str8 = String.format("% d",-123);
        System.out.println(str8);
        String str9 = String.format("%05d",33);
        System.out.println(str9);
        String str10 = String.format("%,d",123456789);
        System.out.println(str10);
        String str11 = String.format("%(d",33);
        System.out.println(str11);
        String str12 = String.format("%(d",-33);
        System.out.println(str12);
    }
}
